const path = require('path')

module.exports = {
  webpack: {
    alias: {
      // 约定：使用 @ 表示 src 文件所在路径
      '@': path.resolve(__dirname, 'src')
    },
    configure: (webpackConfig,{paths}) => {
      paths.appBuild = 'dist';
      webpackConfig.output = {
        ...webpackConfig.output,
        path: path.resolve(__dirname,'dist'),
        publicPath: '/react-geek-pc/'
      }
      return webpackConfig;
    }
  }
}